import request from '../utils/request'
import { ADMIN_API_BASE_URL } from '../config'

// api就是请求接口 post是方法  统一接口 放在 因为可能不止一个地方用
export const getUserStaticApi = () => request.get(`${ADMIN_API_BASE_URL}/statistic/user`, { silent: true })
// 携带参数 可以在config里面看见
export const getProStaticApi = () => request.get(`${ADMIN_API_BASE_URL}/statistic/product`)
export const getKdataApi = () => request.get(`${ADMIN_API_BASE_URL}/data/kData`)
export const getSimpleDatacApi = () => request.get(`${ADMIN_API_BASE_URL}/data/simpleData`)
